package com.zmn.oms.services.interfaces.invoice;

import com.zmn.oms.model.entity.invoice.OrderInvoice;
import java.util.List;

/**
 * 类描述：订单发票
 *
 * @author lujia
 * @date 2018/11/27 14:32
 */
public interface OrderInvoiceService {

    /**
     * 根据订单id查询发票
     * @param orderId 订单Id
     * @return 发票
     */
    OrderInvoice findOrderInvoiceByKey(Long orderId);

    /**
     * 根据订单id集合查询发票集合
     * @param orderIdList 订单id集合
     * @return 发票集合
     */
    List<OrderInvoice> listOrderInvoiceByOrderIdList(List<Long> orderIdList);

    /**
     * 根据key删除
     * @param orderId
     */
    void deleteOrderInvoiceByKey(Long orderId);

    /**
     * 保存发票信息
     * @param orderInvoice
     */
    void insertOrderInvoice(OrderInvoice orderInvoice);
}
